import { combineReducers } from "redux";
import { SET_VALUE } from "../constants/common";

const initialState = {};

function reducer(state = initialState, action) {
  switch (action.type) {
    case SET_VALUE:
      return {
        ...state,
        [action.field]: action.value,
      };

    default:
      return state;
  }
}

export default combineReducers({
  reducer,
});
